package com.example.demo.controller;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.example.demo.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * Created by Administrator on 2017/7/6.
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("login")
    public ModelAndView login(){
        return new ModelAndView("test/login");
    }

    @RequestMapping("info")
    public ModelAndView info(){
        return new ModelAndView("test/info");
    }

    @RequestMapping("users")
    public ModelAndView users(){

        
//        List<User> userList = userMapper.selectPage(
//                new Page<User>(1, 10),
//                new EntityWrapper<User>()
//        );

        return new ModelAndView("test/users");
    }

}
